<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="staffList.title"/></title>
    <meta name="heading" content="<fmt:message key='staffList.heading'/>"/>
    <meta name="menu" content="staffMenu"/>
    <meta name="menu" content="YADataMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="editStaff"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="staffGroup" defaultsort="2" defaultorder="ascending" class="table" requestURI="" id="staffList" export="true" pagesize="25">

    <display:column property="id" sortable="true" href="editStaff" media="html"
        paramId="id" paramProperty="id" titleKey="staff.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="staff.id"/>
    <display:column property="dept" group="1"  sortable="true" titleKey="staff.dept"/>
    <display:column property="team" group="2"  sortable="true" titleKey="staff.team"/>
    <display:column property="staffId" sortable="true" titleKey="staff.staffId"/>
    <display:column property="name" sortable="true" titleKey="staff.name"/>

    <display:column titleKey="staff.leader" style="width: 16%; padding-left: 15px" media="html">
       <input type="checkbox" disabled="disabled" <c:if test="${staffList.leader}">checked="checked"</c:if>/>
    </display:column>
	<display:column titleKey="staff.manager" style="width: 16%; padding-left: 15px" media="html">
       <input type="checkbox" disabled="disabled" <c:if test="${staffList.manager}">checked="checked"</c:if>/>
    </display:column>
    <display:column titleKey="staff.status" style="width: 16%; padding-left: 15px" media="html">
       <input type="checkbox" disabled="disabled" <c:if test="${staffList.status}">checked="checked"</c:if>/>
    </display:column>
    <display:column property="subTime"   sortable="true" titleKey="staff.subTime"/>
     <display:column property="remark"  sortable="true" titleKey="staff.remark"/>
    <display:column property="modifyTime" sortable="true" titleKey="staff.modifyTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="staffList.staffs"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="staffList.staffs"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="staffList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="staffList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="staffList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="editStaff"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("staffList");
</script>